package com.bite.deom2;

public class Test {

    public static void testFly(IFly iFly) {
        iFly.fly();
    }

    public static void testRun(IRun iRun) {
        iRun.run();
    }

    public static void main(String[] args) {
        testFly(new Brid("小白",18,"蓝色"));
        testRun(new Dog("小黑",28,"红色"));
        Dog dog = new Dog("小黑",28,"红色");
        testRun(dog);
        IRun iRun = new Brid("小黑",28,"红色");
        iRun.run();
    }

}
